import { match } from 'path-to-regexp/dist'

const list = [
  '/paas/userAuth/(login|captcha|updatePassword|sendUpdatePwdCode|resetPassword)',
  '/paas/paasuser/(getWxMiniUserPhone|getWxNewPhoneNoInfo|userNameExist)',
  '/wpc-return-visit/config/getTenantIdByCountyId',
  '/paas/paasposition(.*)'
]

export default list

const matchFnList = list.map((o) => match(o, { decode: decodeURIComponent }))

export function reqUrlMatch(url: string) {
  return matchFnList.some((o) => o(url))
}
